﻿#设置CMake所需的最低版本
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
#声明了项目的名称和支持的编程语言
project(math_zzb LANGUAGES CXX)

option(BUILD_UNITTEST "Build unittest" ON)

# 设置C++11标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS OFF)

#set(DEFAULT_BUILD_TYPE "Debug") # 修改处，将release改为debug，也可以直接删除
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)


#添加子目录
add_subdirectory(3rdparty)

add_subdirectory(src)


